package com.fengpb.friday.conductor.common.dto;

import org.springframework.http.HttpStatus;

public enum HttpStatusEnum {
    SUCCESS(HttpStatus.OK.value(), HttpStatus.OK.getReasonPhrase()),
    FAILED(HttpStatus.INTERNAL_SERVER_ERROR.value(), HttpStatus.INTERNAL_SERVER_ERROR.getReasonPhrase())
    ;
    private int status;
    private String message;

    public int status() {
        return status;
    }

    public String message() {
        return message;
    }

    HttpStatusEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }
}
